import Vue from 'vue'
import Router from 'vue-router'
import HomePage from '@/components/HomePage'
import market from '@/components/market'
import calendar from '@/components/calendar'
import news from '@/components/news'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/home',
      name: 'home',
      component: HomePage
    },
    {
      path: '/chart-bar',
      name: 'market',
      component: market
    },
    {
      path: '/calendar',
      name: 'calendar',
      component: calendar
    },
    {
      path: '/globe',
      name: 'news',
      component: news
    },
    {
      path: '/',
      component: HomePage
    }
  ]
})
